﻿<!DOCTYPE html>
<html>
<head>
    <script src="../../js/header.js"></script>
</head>
<body>
<section class="container-fluid" style="background-color: white;">
    <form class="form-horizontal m15_t" id="form" onsubmit="return false;">
        <div class="row m15_t">

            <div class="tab-content col-md-3">
                <input type="hidden" id="hdCompanyPId" name="hdCompanyPId" value="0">

                <div class="tab-pane fade in active" id="divCompany">
                    <div class="form-group">
                        <label class="wd125 control-label"><span class="WdateFmtErr">*</span>银行卡类型：</label>
                        <select class="" name="CardType" id="CardType" onchange="selectOnchang(this)">
                            <option value="1">收款卡</option>
                            <option value="2">中转卡</option>
                            <option value="3">付款卡</option>
                        </select>
                    </div>
                    <div class="form-group">
                        <label class="wd125 control-label">公司名称：</label>
                        <select class="" name="CompanyID" id="CompanyID"></select>
                    </div>
                    <div class="form-group">
                        <label class="wd125 control-label"><span class="WdateFmtErr">*</span>银行名称：</label>
                        <select class="" name="BankCode" id="BankCode"></select>
                    </div>
                    <div class="form-group">
                        <label class="wd125 control-label"><span class="WdateFmtErr">*</span>银行卡号：</label>
                        <div class="">
                            <input class="form-control wd250" type="text" name="CardNumber" maxlength="90" placeholder="长度必须介于 6 和 90 之间" autocomplete="off">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="wd125 control-label"><span class="WdateFmtErr">*</span>银行卡用户名：</label>
                        <div class="">
                            <input class="form-control wd250" type="text" name="CardName" maxlength="40" placeholder="长度必须介于 1 和 40 之间" autocomplete="off">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="wd125 control-label"><span class="WdateFmtErr">*</span>银行卡使用状态：</label>
                        <select class="" name="UsingStatus" id="UsingStatus">
                            <option value="1">有效</option>
                            <option value="2">冻结</option>
                        </select>
                    </div>


                    <div class="form-group">
                        <label class="wd125 control-label"><span class="WdateFmtErr">*</span>银行卡启用状态：</label>
                        <select class="" name="EnableStatus" id="EnableStatus">
                            <option value="1">启用</option>
                            <option value="2">禁用</option>
                        </select>
                    </div>

                    <div class="form-group">
                        <label class="wd125 control-label"><span class="WdateFmtErr">*</span>登陆名称：</label>
                        <div class="">
                            <input class="form-control wd250" type="text" name="LoginName" maxlength="118" placeholder="长度必须介于 3 和 118 之间" autocomplete="off">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="wd125 control-label"><span class="WdateFmtErr">*</span>登陆密码：</label>
                        <div class="input-group wd250">
                            <input class="form-control" type="text" id="PasswordLogin" name="PasswordLogin" readonly onfocus="this.removeAttribute('readonly');" maxlength="40" placeholder="长度必须介于 6 和 40 之间" autocomplete="off">
                            <span class="input-group-addon" onclick="checkPasswordLogin();">
                                <i class="glyphicon glyphicon-eye-open"></i>
                            </span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="wd125 control-label">查询密码：</label>
                        <div class="input-group wd250">
                            <input class="form-control" type="text" id="PasswordQuery" name="PasswordQuery" readonly onfocus="this.removeAttribute('readonly');" maxlength="40" placeholder="长度必须介于 6 和 40 之间" autocomplete="off">
                            <span class="input-group-addon" onclick="checkPasswordQuery();"><i class="glyphicon glyphicon-eye-open"></i></span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="wd125 control-label">支付密码：</label>
                        <div class="input-group wd250">
                            <input class="form-control" type="text" id="PasswordPay" name="PasswordPay" readonly onfocus="this.removeAttribute('readonly');" maxlength="40" placeholder="长度必须介于 6 和 40 之间" autocomplete="off">
                            <span class="input-group-addon" onclick="checkPasswordPay();"><i class="glyphicon glyphicon-eye-open"></i></span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="wd125 control-label">网盾密码：</label>
                        <div class="input-group wd250">
                            <input class="form-control" type="text" id="PasswordShield" name="PasswordShield" readonly onfocus="this.removeAttribute('readonly');" maxlength="40" placeholder="长度必须介于 6 和 40 之间" autocomplete="off">
                            <span class="input-group-addon" onclick="checkPasswordShield();"><i class="glyphicon glyphicon-eye-open"></i></span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="wd125 control-label"><span class="WdateFmtErr">*</span>网盾类型：</label>
                        <select class="" name="UsbType" id="UsbType">
                            <option value="1">手工</option>
                            <option value="2">自动</option>
                        </select>
                    </div>

                    <div class="form-group">
                        <label class="wd125 control-label"><span class="WdateFmtErr">*</span>原始密码：</label>
                        <div class="input-group wd250">
                            <input class="form-control" type="text" id="OriginalPassword" name="OriginalPassword" readonly onfocus="this.removeAttribute('readonly');" maxlength="40" placeholder="长度必须介于 6 和 40 之间" autocomplete="off">
                            <span class="input-group-addon" onclick="checkPwdOriginal();">
                            <i class="glyphicon glyphicon-eye-open"></i>
                            </span>
                            <!--glyphicon-eye-close glyphicon-eye-open-->
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="wd125 control-label"><span class="WdateFmtErr">*</span>开户地：</label>
                        <div class="">
                            <input class="form-control wd250" type="text" name="AccountBank" maxlength="40" placeholder="长度必须介于 1 和 40 之间" autocomplete="off">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="wd125 control-label"><span class="WdateFmtErr">*</span>证件号码：</label>
                        <div class="">
                            <input class="form-control wd250" type="text" name="DocumentNumber" maxlength="40" placeholder="长度必须介于 3 和 40 之间" autocomplete="off">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="wd125 control-label"><span class="WdateFmtErr">*</span>手机号码：</label>
                        <div class="">
                            <input class="form-control wd250" type="text" name="PhoneNumber" maxlength="40" placeholder="长度必须介于 3 和 40 之间" autocomplete="off">
                        </div>
                    </div>
                    <div class="form-group" id="divPaymentStart">
                        <label class="wd125 control-label"><span class="WdateFmtErr">*</span>付款区间起：</label>
                        <div class="">
                            <input class="form-control wd250" type="text" name="PaymentStart" maxlength="6" value="0" autocomplete="off">
                        </div>
                    </div>
                    <div class="form-group" id="divPaymentEnd">
                        <label class="wd125 control-label"><span class="WdateFmtErr">*</span>付款区间迄：</label>
                        <div class="">
                            <input class="form-control wd250" type="text" name="PaymentEnd" maxlength="6" value="0" autocomplete="off">
                        </div>
                    </div>
                    <div class="form-group" id="divPayFeeRatio">
                        <label class="wd125 control-label"><span class="WdateFmtErr">*</span>付款费率：</label>
                        <div class="">
                            <input class="form-control wd250" type="text" name="PayFeeRatio" maxlength="12" value="0" autocomplete="off">
                        </div>
                    </div>
                    <div class="form-group" id="divCrossBankPay">
                        <label class="wd125 control-label"><span class="WdateFmtErr">*</span>跨行转账：</label>
                        <select class="" name="CrossBankPay" id="CrossBankPay">
                            <option value="1">同行</option>
                            <option value="2">跨行</option>
                            <option value="3">全部</option>
                        </select>
                    </div>
                    <div class="form-group" id="divDepositType">
                        <label class="wd125 control-label"><span class="WdateFmtErr">*</span>存款等级：</label>
                        <div class="btn-group" name="DepositType" id="DepositType" data-toggle="buttons">
                            <label><input type="checkbox" name="ckDepositType" value="A">A</label>
                            <label><input type="checkbox" name="ckDepositType" value="B">B</label>
                            <label><input type="checkbox" name="ckDepositType" value="C">C</label>
                            <label><input type="checkbox" name="ckDepositType" value="D">D</label>
                            <label><input type="checkbox" name="ckDepositType" value="E">E</label>
                            <label><input type="checkbox" name="ckDepositType" value="F">F</label>
                            <label><input type="checkbox" name="ckDepositType" value="G">G</label>
                            <label><input type="checkbox" name="ckDepositType" value="H">H</label>
                            <label><input type="checkbox" name="ckDepositType" value="I"> I</label>
                        </div>
                    </div>
                    <div class="form-group" id="divDepositFeeRatio">
                        <label class="wd125 control-label"><span class="WdateFmtErr">*</span>收款费率：</label>
                        <div class="">
                            <input class="form-control wd250" type="text" name="DepositFeeRatio" maxlength="12" value="0" autocomplete="off">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="wd125 control-label">备注：</label>
                        <div class="">
                            <input class="form-control wd250" type="text" name="Remark" maxlength="50" autocomplete="off">
                        </div>
                    </div>
                    <!--<div class="form-group">
                        <label class="wd125 control-label">&nbsp;</label>
                        <div class="wd250 m15_l">
                            <button class="btn btn-primary" onclick="save();">保存</button>

                        </div>
                    </div>-->
                </div>
            </div>

        </div>
    </form>
</section>
<script type="text/javascript">
    var validator = null;
    $(function () {
        var id = FlashPay.Util.GetQueryString("id");//Bcid
        selectOnchang(this);
        showCompanyList();
        showBankList();
        if (id != null && id != undefined) {
            showBankCardInfo(id);
        }
        validator = FlashPay.Util.Validator({
                formObj: $("#form"),
                rules: {
                    BankCode: {
                        required: true,
                    },
                    CardNumber: {
                        required: true,
                        rangelength: [6, 90]
                    },
                    CardName: {
                        required: true,
                        rangelength: [1, 40]
                    },
                    CardType: {
                        required: true
                    },
                    LoginName: {
                        required: true,
                        rangelength: [3, 118]
                    },
                    PasswordLogin: {
                        rangelength: [6, 40]
                    },
                    UseType: {
                        required: true
                    },
                    OriginalPassword: {
                        rangelength: [6, 40]
                    },
                    AccountBank: {
                        required: true,
                        rangelength: [1, 40]
                    },
                    DocumentNumber: {
                        required: true,
                        rangelength: [3, 40]
                    },
                    PhoneNumber: {
                        required: true,
                        rangelength: [3, 40]
                    },
                    DepositFeeRatio: {//收款费率
                        required: true,
                        money: true
                    },
                    PaymentStart: {
                        required: true,
                        money: true
                    },
                    PaymentEnd: {
                        required: true,
                        money: true
                    },
                    PayFeeRatio: {
                        required: true,
                        money: true
                    },
                    CrossBankPay: {
                        required: true
                    },
                    DepositType: {
                        required: true
                    }
                },
                messages: {
                    BankCode: {
                        required: "必须选择一个银行",
                    },
                    CardNumber: {
                        required: "银行卡号不能为空",
                        rangelength: "银行卡号长度必须介于 6 和 90 之间"
                    },
                    CardName: {
                        required: "必须填写银行卡用户名",
                        rangelength: "银行卡用户名长度必须介于 1 和 40 之间",
                    },
                    CardType: {
                        required: "请选择银行卡类型",
                    },
                    LoginName: {
                        required: "登陆名称不能为空",
                        rangelength: "登陆名称长度必须介于 3 和 118 之间",
                    },
                    PasswordLogin: {
                        //required: "登陆密码不能为空",
                        rangelength: "登陆密码长度必须介于 6 和 40 之间",
                    },
                    UseType: {
                        required: "网盾类型不能为空",
                    },
                    OriginalPassword: {
                        //required: "原始密码不能为空",
                        rangelength: "原始密码长度必须介于 6 和 40 之间",
                    },
                    AccountBank: {
                        required: "开户地不能为空",
                        rangelength: "开户地长度必须介于 1 和 40 之间",
                    },
                    DocumentNumber: {
                        required: "证件号码不能为空",
                        rangelength: "证件号码长度必须介于 3 和 40 之间",
                    },
                    PhoneNumber: {
                        required: "手机号码不能为空",
                        rangelength: "手机号码长度必须介于 3 和 40 之间",
                    },
                    DepositFeeRatio: {
                        required: "收款费率不能为空",
                        money: "收款费率必须为金额，最多保留8位小数",
                    },
                    PaymentStart: {
                        required: "付款区间起不能为空",
                        money: "付款区间起必须为金额，最多保留4位小数",
                    },
                    PaymentEnd: {
                        required: "付款区间迄不能为空",
                        money: "付款区间迄必须为金额，最多保留4位小数",
                    },
                    PayFeeRatio: {
                        required: "付款费率不能为空",
                        money: "付款费率必须为金额，最多保留8位小数",
                    },
                    CrossBankPay: {
                        required: "请选择跨行转账",
                    },
                    DepositType: {
                        required: "请选择存款等级",
                    }
                },
            });
    });
    function checkPasswordLogin() {
        var psw = document.getElementById('PasswordLogin');
        if (psw.getAttribute('type') == 'text') {
            psw.setAttribute('type', 'password')
        } else {
            psw.setAttribute('type', 'text')
        }
    }
    function checkPasswordQuery() {
        var psw = document.getElementById('PasswordQuery');
        if (psw.getAttribute('type') == 'text') {
            psw.setAttribute('type', 'password')
        } else {
            psw.setAttribute('type', 'text')
        }
    }
    function checkPasswordPay() {
        var psw = document.getElementById('PasswordPay');
        if (psw.getAttribute('type') == 'text') {
            psw.setAttribute('type', 'password')
        } else {
            psw.setAttribute('type', 'text')
        }
    }
    function checkPasswordShield() {
        var psw = document.getElementById('PasswordShield');
        if (psw.getAttribute('type') == 'text') {
            psw.setAttribute('type', 'password')
        } else {
            psw.setAttribute('type', 'text')
        }
    }
    function checkPwdOriginal() {
        var psw = document.getElementById('OriginalPassword');
        if (psw.getAttribute('type') == 'text') {
            psw.setAttribute('type', 'password')
        } else {
            psw.setAttribute('type', 'text')
        }
    }
    function selectOnchang(obj) {
        var cardtype = $("#CardType option:selected").val()
        //if (obj.value == 1 || obj.value == 2 || obj.value == undefined) {
        if (cardtype == 1 || cardtype == 2) {
            //收款卡,中转卡
            $("#divPaymentStart").hide();
            $("#divPaymentEnd").hide();
            $("#divPayFeeRatio").hide();
            $("#divCrossBankPay").hide();
            $("#divDepositType").hide();
            $("#divDepositFeeRatio").show();
        } else {
            //付款卡
            $("#divPaymentStart").show();
            $("#divPaymentEnd").show();
            $("#divPayFeeRatio").show();
            $("#divCrossBankPay").show();
            $("#divDepositType").show();
            $("#divDepositFeeRatio").hide();
        }
    }
    //加载公司下拉列表
    function showCompanyList() {
        var CompanyQuery = {};
        FlashPay.Util.Ajax({
            type: "POST",
            url: "/Company/Get",
            data: JSON.stringify(CompanyQuery),
            dataType: "json",
            contentType: "application/json",
            success: function (data) {
                var infos = data.result;
                var html = "";
                for (var i = 0; i < infos.length; i++) {
                    html += "<option value=" + infos[i].companyID + ">" + infos[i].companyName + "</option>";
                }
                $("#CompanyID").html('<option value="0">请选择</option>').append(html);

            }
        });
    }
    //加载银行下拉列表
    function showBankList() {
        var BankQuery = {};
        FlashPay.Util.Ajax({
            type: "POST",
            url: "/BankInfo/GetBankInfoList",
            data: JSON.stringify(BankQuery),
            dataType: "json",
            contentType: "application/json",
            success: function (data) {
                var infos = data;
                var html = "";
                for (var i = 0; i < infos.length; i++) {
                    html += "<option value=" + infos[i].bankCode + ">" + infos[i].bankName + "</option>";
                }
                $("#BankCode").html('<option value="">请选择</option>').append(html);

            }
        });
    }

    //显示值
    function showBankCardInfo(id) {
        var pswLogin = document.getElementById('PasswordLogin');
        var pswQuery = document.getElementById('PasswordQuery');
        var pswPay = document.getElementById('PasswordPay');
        var pswShield = document.getElementById('PasswordShield');
        var pswOriginal = document.getElementById('OriginalPassword');
        pswLogin.setAttribute('type', 'password');
        pswQuery.setAttribute('type', 'password');
        pswPay.setAttribute('type', 'password');
        pswShield.setAttribute('type', 'password');
        pswOriginal.setAttribute('type', 'password');

        FlashPay.Util.Ajax({
            type: "POST",
            url: "/BankCard/GetBankCardByBcid?bcid=" + id,
            //data: JSON.stringify({ bcid: id }),
            dataType: "json",
            contentType: "application/json",
            success: function (data) {
                if (data.data != null) {
                    var infos = data.data;
                    $("#CardType").find("option[value=" + infos.cardType + "]").prop("selected", true);
                    $("#CompanyID").find("option[value=" + infos.companyId + "]").prop("selected", true);
                    $("#BankCode").find("option[value=" + infos.bankCode + "]").prop("selected", true);
                    FlashPay.Util.SetInputVal("CardNumber", infos.cardNumber);
                    FlashPay.Util.SetInputVal("CardName", infos.cardName);
                    $("#UsingStatus").find("option[value=" + infos.usingStatus + "]").prop("selected", true);
                    $("#EnableStatus").find("option[value=" + infos.enableStatus + "]").prop("selected", true);
                    FlashPay.Util.SetInputVal("LoginName", infos.loginName);
                    FlashPay.Util.SetInputVal("PasswordLogin", infos.passwordLogin);
                    FlashPay.Util.SetInputVal("PasswordQuery", infos.passwordQuery);
                    FlashPay.Util.SetInputVal("PasswordPay", infos.passwordPay);
                    FlashPay.Util.SetInputVal("PasswordShield", infos.passwordShield);
                    $("#UsbType").find("option[value=" + infos.usbType + "]").prop("selected", true);
                    FlashPay.Util.SetInputVal("OriginalPassword", infos.originalPassword);
                    FlashPay.Util.SetInputVal("AccountBank", infos.accountBank);
                    FlashPay.Util.SetInputVal("DocumentNumber", infos.documentNumber);
                    FlashPay.Util.SetInputVal("PhoneNumber", infos.phoneNumber);
                    FlashPay.Util.SetInputVal("PaymentStart", infos.paymentStart);
                    FlashPay.Util.SetInputVal("PaymentEnd", infos.paymentEnd);
                    FlashPay.Util.SetInputVal("PayFeeRatio", infos.payFeeRatio);
                    $("#CrossBankPay").find("option[value=" + infos.crossBankPay + "]").prop("selected", true);
                    if (infos.cardType == 3) {
                        var checkBox = infos.depositType;
                        var checkBoxArray = checkBox.split(",");
                        for (var i = 0; i < checkBoxArray.length; i++) {
                            var tem = checkBoxArray[i];
                            $('input[name="ckDepositType"][value="' + tem + '"]').prop('checked', true);
                        }
                        FlashPay.Util.SetInputVal("DepositType", infos.depositType);
                    }
                    FlashPay.Util.SetInputVal("DepositFeeRatio", infos.depositFeeRatio);
                    FlashPay.Util.SetInputVal("Remark", infos.remark);
                    selectOnchang(this);
                }
            }
        });
    }

    //保存
    function save() {
        var cardtype = $("#CardType option:selected").val();
        if (!validator.form()) {
            if (cardtype == 3) {//付款卡验证
                return false;
            } else {
                var companyid = $("#CompanyID option:selected").val();
                var bankcode = $("#BankCode option:selected").val();
                var cardnumber = $("input[name='CardNumber']").val();
                var cardname = $("input[name='CardName']").val();
                var loginname = $("input[name='LoginName']").val();
                var accountbank = $("input[name='AccountBank']").val();
                var documentnumber = $("input[name='DocumentNumber']").val();
                var phonenumber = $("input[name='PhoneNumber']").val();
                var depositfeeratio = $("input[name='DepositFeeRatio']").val();
                if (FlashPay.Util.isNullOrEmptySpance(companyid) || FlashPay.Util.isNullOrEmptySpance(bankcode) || FlashPay.Util.isNullOrEmptySpance(cardnumber) ||
                    FlashPay.Util.isNullOrEmptySpance(cardname) || FlashPay.Util.isNullOrEmptySpance(loginname) || FlashPay.Util.isNullOrEmptySpance(accountbank) ||
                    FlashPay.Util.isNullOrEmptySpance(documentnumber) ||FlashPay.Util.isNullOrEmptySpance(phonenumber) || FlashPay.Util.isNullOrEmptySpance(depositfeeratio)) {
                    return false;
                }
            }
        }
        var passwordlogin = $("input[name='PasswordLogin']").val();//登陆密码
        var originalpassword = $("input[name='OriginalPassword']").val();//原始密码
        if (passwordlogin == "") {
            FlashPay.UI.Tip_short_warning("请输入登陆密码!");
            $('input[name="PasswordLogin"]').focus();
            return false;
        }
        if (originalpassword == "") {
            FlashPay.UI.Tip_short_warning("请输入原始密码!");
            $('input[name="OriginalPassword"]').focus();
            return false;
        }
        var array_ck = new Array();
        $('input[name="ckDepositType"]:checked').each(function () {
            array_ck.push($(this).val());//向数组中添加元素
        });
        var ckstr = array_ck.join(',');//将数组元素连接起来以构建一个字符串
        if (cardtype == 3 && FlashPay.Util.isNullOrEmptySpance(ckstr)) {
            FlashPay.UI.Tip_short_warning("请勾选存款等级!");
            return false;
        }

        var bankCard = {};
        bankCard.CardType = $("#CardType option:selected").val();
        bankCard.CompanyID = $("#CompanyID option:selected").val();
        bankCard.BankCode = $("#BankCode option:selected").val();
        bankCard.BankName = $("#BankCode option:selected").text();
        bankCard.CardNumber = $("input[name='CardNumber']").val();
        bankCard.CardName = $("input[name='CardName']").val();
        bankCard.UsingStatus = $("#UsingStatus option:selected").val();
        bankCard.EnableStatus = $("#EnableStatus option:selected").val();
        bankCard.LoginName = $("input[name='LoginName']").val();
        bankCard.PasswordLogin = $("input[name='PasswordLogin']").val();
        bankCard.PasswordQuery = $("input[name='PasswordQuery']").val();
        bankCard.PasswordPay = $("input[name='PasswordPay']").val();
        bankCard.PasswordShield = $("input[name='PasswordShield']").val();
        bankCard.UsbType = $("#UsbType option:selected").val();
        bankCard.OriginalPassword = $("input[name='OriginalPassword']").val();
        bankCard.AccountBank = $("input[name='AccountBank']").val();
        bankCard.DocumentNumber = $("input[name='DocumentNumber']").val();
        bankCard.PhoneNumber = $("input[name='PhoneNumber']").val();
        bankCard.PaymentStart = $("input[name='PaymentStart']").val();
        bankCard.PaymentEnd = $("input[name='PaymentEnd']").val();
        bankCard.PayFeeRatio = $("input[name='PayFeeRatio']").val();
        bankCard.CrossBankPay = $("#CrossBankPay option:selected").val();
        bankCard.DepositType = ckstr;
        bankCard.DepositFeeRatio = $("input[name='DepositFeeRatio']").val();
        bankCard.Remark = $("input[name='Remark']").val();

        var url = "/BankCard/AddBankCard";
        var id = FlashPay.Util.GetQueryString("id");
        if (id != null && id != undefined) {
            url = "/BankCard/UpdateBankCard";
            bankCard.Bcid = id;
        }
        FlashPay.Util.Ajax({
            type: "POST",
            url: url,
            data: { model: bankCard },
            success: function (data) {
                if (!data.success) {
                    FlashPay.UI.Tip_warning("添加失败!" + data.errorMessage);
                    return;
                } else {
                    if (FlashPay.Util.isNullOrEmptySpance(id)) {
                        FlashPay.UI.CloseDialog();
                        FlashPay.UI.DialogOpener().doSearch();
                        FlashPay.UI.DialogOpener().Tip_success("添加成功!");
                    }
                    else {
                        FlashPay.UI.CloseDialog();
                        FlashPay.UI.DialogOpener().doSearch3();
                        FlashPay.UI.DialogOpener().Tip_success("修改成功!");
                    }
                }
            },
            error: function (json) {
                FlashPay.UI.Tip_warning("操作失败！请查看网络，请重试。");
            }
        });
    }
</script>
</body>
</html>